import {Pipe, PipeTransform} from "@angular/core";
/**
 * Created by Administrator on 2017/3/28.
 */
@Pipe({name: 'decimalPointType'})
export class DecimalPointType implements PipeTransform {
    transform(value: any, length: number): string {
        if (value && length) {
            return value.toFixed(length)
        } else {
            return value
        }

    }

}